//
// Created by 26364 on 2025/10/27.
//

#ifndef BOOTLOADER_MY_TCP_H
#define BOOTLOADER_MY_TCP_H
#include <string.h>
#include "tcp.h"
typedef void (*update_callback_t)(uint8_t flag);
err_t tcp_Send(struct tcp_pcb* tpcb, uint8_t* Data);
struct tcp_pcb* tcp_client_init(uint8_t Ip[4], uint16_t LOCAL_PORT, uint16_t REMOTE_PORT);
void set_update_complete_callback(update_callback_t callback);
void set_update_Begin_callback(update_callback_t callback);
void set_update_Block_callback(update_callback_t callback);
#endif //BOOTLOADER_MY_TCP_H
